package com.xy.p2p.model;

import java.util.Date;

public class TtenderrecordForTransfer extends Ttenderrecord {
	public TtenderrecordForTransfer(Ttenderrecord ttenderrecord){
		exchange(ttenderrecord);
	}
	private Long subDay;

	public Long getSubDay() {
		return (new Date().getTime()-super.getTddatetime().getTime()) / 1000 / 60 / 60 / 24;
	}

	public void setSubDay(Long subDay) {
		this.subDay = subDay;
	}
	
	private void exchange(Ttenderrecord ttenderrecord){
		this.setFinancepa(ttenderrecord.getFinancepa());
		this.setIstransfer(ttenderrecord.getIstransfer());
		this.setMibmoney(ttenderrecord.getMibmoney());
		this.setTddatetime(ttenderrecord.getTddatetime());
		this.setTdmoney(ttenderrecord.getTdmoney());
		this.setTdreason(ttenderrecord.getTdreason());
		this.setTfinanceinfo(ttenderrecord.getTfinanceinfo());
		this.setTmember(ttenderrecord.getTmember());
		this.setTrid(ttenderrecord.getTrid());
		this.setTsfmoney(ttenderrecord.getTsfmoney());
		this.setTtransferinfos(ttenderrecord.getTtransferinfos());
	}
}
